import Vue from 'vue'
import VueRouter from 'vue-router'

const Login = () => import('@/views/Login/login')
// 首页
const Home = () => import('@/views/Home/Home')
// 职业规划
const CareerPlanPublish = () => import('@/views/CareerPlan/Publish')
const CareerPlanManage = () => import('@/views/CareerPlan/CareerPlanManage')
const CareerPlanComments = () => import('@/views/CareerPlan/CareerPlanComments')
const CareerPlanDrafts = () => import('@/views/CareerPlan/Drafts')
const CareerPlanDeleted = () => import('@/views/CareerPlan/Deleted')
const CareerPlanPrevie = () => import('@/views/CareerPlan/CareerPlanPreview')
// 简历指导
const MyResume = () => import('@/views/ResumeGuidance/MyResume')
const ResumeManage = () => import('@/views/ResumeGuidance/ResumeManage')
const ResumeComments = () => import('@/views/ResumeGuidance/ResumeComments')
// 求职指导
const ApplyJob = () => import('@/views/JobGuidance/ApplyJob')
// 导师工作簿
const TutorManage = () => import('@/views/Tutor/Manage')
const TutorPublish = () => import('@/views/Tutor/Publish')
// 消息
const Messages = () => import('@/views/Message/Messages')
// 设置
const About = () => import('@/views/MyConfig/About')
const TimesLot = () => import('@/views/MyConfig/TimesLot')

// 数据统计
const Ice = () => import('@/views/Statistics/ice')
const Career = () => import('@/views/Statistics/career')
const Resume = () => import('@/views/Statistics/resume')
const Employ = () => import('@/views/Statistics/employ')
const School = () => import('@/views/Statistics/school')

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'login',
    component: Login
  },
  {
    path: '/home',
    component: Home
  },
  {
    path: '/career/publish',
    component: CareerPlanPublish
  },
  {
    path: '/career/manage',
    component: CareerPlanManage
  },
  {
    path: '/career/comments',
    component: CareerPlanComments
  },
  {
    path: '/career/drafts',
    component: CareerPlanDrafts
  },
  {
    path: '/career/deleted',
    component: CareerPlanDeleted
  },
  {
    path: '/career/previe',
    component: CareerPlanPrevie
  },
  {
    path: '/ResumeGuidance/myresume',
    component: MyResume
  },
  {
    path: '/ResumeGuidance/manage',
    component: ResumeManage
  },
  {
    path: '/ResumeGuidance/comments',
    component: ResumeComments
  },
  {
    path: '/JobGuidance/applyJob',
    component: ApplyJob
  },
  {
    path: '/Tutor/manage',
    component: TutorManage
  },
  {
    path: '/Tutor/publish',
    component: TutorPublish
  },
  {
    path: '/Messages',
    component: Messages
  },
  {
    path: '/MyConfig/about',
    component: About
  },
  {
    path: '/MyConfig/timesLot',
    component: TimesLot
  },
  {
    path: '/Statustucs/ice',
    component: Ice
  },
  {
    path: '/Statustucs/career',
    component: Career
  },
  {
    path: '/Statustucs/resume',
    component: Resume
  },
  {
    path: '/Statustucs/employ',
    component: Employ
  },
  {
    path: '/Statustucs/school',
    component: School
  }
]

const router = new VueRouter({
  routes,
  mode: 'history'
})

export default router
